apt-get update

#Debian
#dpkg-reconfigure locales
#Ubuntu
#locale-gen en_GB.utf8

apt-get upgrade



apt-get install apache2-mpm-prefork sqlite3 python-pysqlite2 python-django libapache2-mod-python inkscape pstoedit imagemagick libapache2-mod-python python-django libapache2-mod-wsgi fontconfig subversion-tools ttf-liberation


adduser bms

su bms
cd /home/bms/
svn checkout http://sign-generator-openscad.googlecode.com/svn/trunk/ b9c

mkdir temp-manage


cd /home/bms/b9c/
python manage.py syncdb
# python manage.py dumpdata flatpages --format=xml >./fixtures/flastpages.xml 
python manage.py loaddata ./fixtures/flastpages.xml
python manage.py generate_test_pngs_from_fonts
/bin/bash install-google-fonts.sh 
/bin/bash updated_fonts.sh | sqlite3 b9c.db
chmod a+w ./b9c.db
chmod a+w /home/bms
chmod a+w /home/bms/b9c 
chmod a+w /home/bms/b9c/cache -R
exit

chmod a+r /home/bms/b9c -R
rm /etc/apache2/sites-available/default
ln -s /home/bms/b9c/apache/default /etc/apache2/sites-available/default
/etc/init.d/apache2 restart

